package com.example.orderflow.service;

import java.util.List;

import com.example.orderflow.entity.query.ApprovalStageQuery;
import com.example.orderflow.entity.po.ApprovalStage;
import com.example.orderflow.entity.vo.PaginationResultVO;


/**
 *  业务接口
 */
public interface ApprovalStageService {

	/**
	 * 根据条件查询列表
	 */
	List<ApprovalStage> findListByParam(ApprovalStageQuery param);

	/**
	 * 根据条件查询列表
	 */
	Integer findCountByParam(ApprovalStageQuery param);

	/**
	 * 分页查询
	 */
	PaginationResultVO<ApprovalStage> findListByPage(ApprovalStageQuery param);

	/**
	 * 新增
	 */
	Integer add(ApprovalStage bean);

	/**
	 * 批量新增
	 */
	Integer addBatch(List<ApprovalStage> listBean);

	/**
	 * 批量新增/修改
	 */
	Integer addOrUpdateBatch(List<ApprovalStage> listBean);

	/**
	 * 多条件更新
	 */
	Integer updateByParam(ApprovalStage bean,ApprovalStageQuery param);

	/**
	 * 多条件删除
	 */
	Integer deleteByParam(ApprovalStageQuery param);

	/**
	 * 根据ApprovalId查询对象
	 */
	ApprovalStage getApprovalStageByApprovalId(Integer approvalId);


	/**
	 * 根据ApprovalId修改
	 */
	Integer updateApprovalStageByApprovalId(ApprovalStage bean,Integer approvalId);


	/**
	 * 根据ApprovalId删除
	 */
	Integer deleteApprovalStageByApprovalId(Integer approvalId);

	/**
	 * 根据LevelName查询对象
	 */
	ApprovalStage getApprovalStageByLevelName(String levelName);

}